﻿//using ASmile.Extend;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASmile.ORM.CodeBuilder
{
    class Config
    {
        public static string[] AppArgs { get; private set; }

        public static void AppArgsSet(string[] arg)
        {
            AppArgs = arg;
        }

        public static string ConfigFileName
        {
            get
            {
                if (AppArgs == null || AppArgs.Length == 0) return "Conf.xml";
                if (string.IsNullOrWhiteSpace(AppArgs[0])) return "Conf.xml";

                return AppArgs[0];
            }
        }

    }
}
